<?php

$dirs = scandir(dirname(__FILE__));
foreach ($dirs as $dir) {
    if (in_array($dir, array('.', '..'))) {
        continue;
    }
    $dir = dirname(__FILE__) . '/' . $dir;
    $phps = glob($dir . '/*.php');
    foreach ($phps as $phpfile) {
        require_once $phpfile;
    }
}
unset($phpfile);
unset($phps);
unset($dirs);
unset($dir);
?>